﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Forest.Lion.Model;

namespace Forest.Lion.Domain.Models
{
    public class JobPositionModel
    {
        private JobPosition JobPosition { get; set; }
        private Department Department { get; set; }

        public JobPositionModel(JobPosition jobPosition)
        {
            JobPosition = jobPosition;
            Department = jobPosition.Department;
        }

        public int? SortOrder
        {
            get { return JobPosition.SortOrder; }
        }

        public string JobTitle
        {
            get { return JobPosition.JobTitle; }
        }

        public string DepartmentName
        {
            get
            {
                if (Department != null)
                {
                    return Department.DepartmentName;
                }
                return String.Empty;
            }
        }

        public DateTime LastUpdated
        {
            get
            {
                return JobPosition.LastUpdated;
            }
        }

        public DateTime EndDate
        {
            get
            {
                return JobPosition.EndDate;
            }
        }
    }
}
